﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<iBuproModel.Project>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:Html.Translate("studentProjects") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("studentProjects") %></h2>
    
    

    <table>
        <thead>
            <tr>
                <th></th>
                <th>
                    <%:Html.Translate("name") %>
                </th>
                <th>
                    <%:Html.Translate("details") %>
                </th>
                <th>
                    <%:Html.Translate("created") %>
                </th>
                <th>
                    <%:Html.Translate("shortcut") %>
                </th>
                <th>
                    <%:Html.Translate("memberCount") %>
                </th>
                <th>
                    <%:Html.Translate("subscribe") %>
                </th>
            </tr>
        </thead>
        <tbody>
    <% foreach (var item in Model) { %>
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.Id }) %> |
                <%: Html.ActionLink("Detail", "Detail", new { id=item.Id })%>
                <%: Html.ActionLink("Delete", "Delete", new { id=item.Id })%>
            </td>
            <td>
                <%: item.Name %>
            </td>
            <td>
                <%: item.Detail %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.Created) %>
            </td>
            <td>
                <%: item.Shortcut %>
            </td>
            <td>
                <%: item.MemberCount %>
            </td>
            <td>
                <%: Html.ActionLink(Html.Translate("subscribe"), "SendSubscriptionRequest", new { id = item.Id })%>
            </td>
        </tr>
    
    <% } %>
        </tbody>
    </table>

</asp:Content>

